#include "server_udp.hpp"
#include <memory>

int main(int argc,char *argv[],char *env[])
{
    if(argc!=2)
    {
        fprintf(stdout,"\n\n./servec_udp port\n\n");
        exit(1);
    }
    
    // std::string ip=argv[1];
    // uint16_t port=atoi(argv[2]);
    uint16_t port=atoi(argv[1]);
    std::unique_ptr<ServerUDP> server(new ServerUDP(port));
    server->init();
    server->start();
    
    return 0;
}